﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyData.DB
{
    public class DbHelper
    {
        static string conn = "";
        public static string ConnectionString
        {
            get
            {
                if (conn == "")
                {
                    conn = ConfigurationManager.ConnectionStrings["MyDbContext"].ToString();
                }
                return conn;
            }
        }
        static string LinshiDB = "";
        public static string LinshiDBString
        {
            get
            {
                if (LinshiDB == "")
                {
                    LinshiDB = ConfigurationManager.AppSettings["LinshiDB"].ToString();
                }
                return LinshiDB;
            }
        }
        static string ZhengshishiDB = "";
        public static string ZhengshiDBString
        {
            get
            {
                if (ZhengshishiDB == "")
                {
                    ZhengshishiDB = ConfigurationManager.AppSettings["ZhengshiDB"].ToString();
                }
                return ZhengshishiDB;
            }
        }
    }
}
